/*
 * Copyright 2016-2036 the original author or authors.
 * 
 * COMMERCIAL USE OF THIS SOFTWARE WITHOUT WARRANTY IS NOT ALLOWED.
 * Use is subject to license terms! You can distribute a copy of this software
 * to others for free. This software is a non-profit and open-source project.
 * Any contribution to this project will make it better.
 * All rights reserved! Owned by Stephen Liu.
 * 
 */
package com.github.fork.service.impl;

import com.github.fork.entity.University;
import com.github.fork.persistence.UniversityMapper;
import com.github.fork.service.UniversityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ste7en.liu@gmail.com
 * @since 2016/10/27
 */
@Service("universityService")
public class UniversityServiceImpl implements UniversityService {

    @Autowired
    private UniversityMapper universityMapper;

    @Override
    public University findOne(String code) {
        return universityMapper.findOne(code);
    }

    @Override
    public void add(University university) {
        universityMapper.add(university);
    }
}
